package com.csdig.cms.service;

import java.io.File;
import java.util.Hashtable;
import java.util.List;

import com.csdig.cms.model.ChannelAttr;
import com.csdig.cms.model.ModelItem;

public interface ChannelAttrService {

	public List<ChannelAttr> getByChannelId(Integer channelId) throws Exception;

	public List<ChannelAttr> listAll() throws Exception;

	public void add(ChannelAttr attr) throws Exception;

	public void update(ChannelAttr attr) throws Exception;

	public void delete(int id) throws Exception;

	public ChannelAttr getById(int id) throws Exception;

	public List<ChannelAttr> getByChannelIdAndAttrName(int channelId, String attrName) throws Exception;

	public List<Hashtable<String, Object>> listSelectFiles(File currentPathFile, String order) throws Exception;

	/**
	 * 查询可以添加的item
	 * 
	 * @param channelId
	 * @return
	 * @throws Exception
	 */
	public List<ModelItem> getCanAddModelItemList(String tplPath,Integer channelId) throws Exception;

}
